package edu.tum.cs.stageflow.language.scoping

import org.eclipse.xtext.xbase.annotations.scoping.XbaseWithAnnotationsScopeProvider
import org.eclipse.emf.ecore.EObject
import org.eclipse.emf.ecore.EReference
import com.google.inject.Inject

/**
 * This scope provider is usd by Xtext and Xbase for resolving <b>completion proposals</b> and 
 * delegates internally to a {@link StageflowInternalDeclarativeScopeProvider}.
 */
class StageflowXbaseScopeProvider extends XbaseWithAnnotationsScopeProvider {

	@Inject StageflowInternalDeclarativeScopeProvider internalScopeProvider

	override getScope(EObject context, EReference ref) {
		internalScopeProvider.getScope(context, ref)
	}

}
